/*var aTr = $('.shopCollect');
judgeMore(aTr.length);
function judgeMore(len){
	if(len > 3){
		$('.seeMore').show();
	}else{
		$('.seeMore').hide();
	}
}*/

//查看更多
/*var seeMore = true;
$('.seeMore').on('click',function(){
	if(seeMore){
		$('.tableWrap').css('max-height','99999px');
		$(this).find('.moreLetter').html('收起');
		$(this).find('.imgWrap').find('img').attr('src',$(this).find('.imgWrap').find('img').attr('data-y'));
		seeMore = false;
	}else{
		$('.tableWrap').css('max-height','263px');
		$(this).find('.moreLetter').html('更多');
		$(this).find('.imgWrap').find('img').attr('src',$(this).find('.imgWrap').find('img').attr('data-x'));
		seeMore = true;
	}
})*/

//分页操作
 var pageCount=$(".pageCount").val();
    $(".tcdPageCode").createPage({
        pageCount:pageCount,
        current:$('.pageNo').val(),
        backFn:function(p){
        	window.location.href="/eshop/pcPersonalCenter.htm?pageNo="+p;
        }
    });

//提交
$('.submit').on('click',function(){
	var vl = $('#textNeed').val().trim();//需要提交的需求
	var vl=$("#textNeed").val(); 	
	if(vl==""||vl==null){
		alert("请输入需求信息");
	}else{
		$.ajax({
			type : "POST",
			dataType : 'json',
			url : "/eshop/addPersonalCenterRemark.json",
			data : {
				"remark" : vl
			},
			success : function(data) {
				console.log(data);
				console.log(data["responseEntity"]);
				console.log(data["responseEntity"]["code"]);
				if (data["responseEntity"]["code"]== 200) {
					$("#textNeed").val("");
					alert("提交成功");
				}else{

					alert("网络错误，请稍后重试");
				}
			}
		})
	}
})
